package com.wenjiang.controller;

import com.wenjiang.common.lang.Result;
import com.wenjiang.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/admin")
@RestController
public class AdminController {
    @Autowired
    AdminService adminService;

    //获取所有用户信息

    @RequestMapping("/allInfo")
    public Object getAllInfo(){
        Result result = adminService.getAllUserInfo();
        return result;
    }
}
